package day240428.p1;

public class Cylinder extends Circle {
    public double length;
    //获取长度
    public double getLength(){
        return this.length;
    }
    public void setLength(double length){
        this.length=length;
    }
    //计算体积的方法
    public double FindVolume(){
        return Math.PI*(this.getRadisu()*2)*this.length;
    }
}
